import { Application } from 'egg';
export default (app: Application) => {
    const { STRING, INTEGER, DATE } = app.Sequelize;
    const User = app.model.define('User', {
        id: { type: INTEGER, primaryKey: true, autoIncrement: true },
        name: STRING(40),
        created_at: DATE,
        updated_at: DATE,
    }, {
        tableName: "users",
        timestamps: true
    });
    return User;
};